import subprocess
from flask import Blueprint, render_template

chat_bp = Blueprint('chat', __name__)

@chat_bp.route('/chat')
def chat_page():
    subprocess.Popen(['streamlit', 'run', 'src/front_end/chat_page_streamlit.py'])
    # return render_template('chat.html')  # 渲染0，0001版本聊天页面
    return render_template('chatv3.html')